// script.js
document.getElementById('loginForm').addEventListener('submit', function(e) {
    e.preventDefault();
    const username = document.getElementById('username').value;
    const password = document.getElementById('password').value;
    alert(`登录成功！\n用户名: ${username}\n密码: ${password}`);
});